package com.tiancheng.trade.merchant.convert;

import com.tiancheng.trade.commom.web.model.response.QueryAreaRes;
import com.tiancheng.trade.merchant.model.Area;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface AreaConvert {
    AreaConvert INSTANCE = Mappers.getMapper(AreaConvert.class);

    QueryAreaRes convert(Area area);
    List<QueryAreaRes> convert(List<Area> area);

}
